package com.zjf.carpark.service.impl;


import com.zjf.carpark.dao.UserMapper;
import com.zjf.carpark.entities.User;
import com.zjf.carpark.service.UserService;
import com.zjf.carpark.vo.UserPageVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl extends BaseServiceImpl<User> implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public User login(User user) {

        return userMapper.login(user);
    }

    @Override
    public List<User> showByMsg(UserPageVO userPageVo) {
        return userMapper.selectByMsg(userPageVo);
    }

    @Override
    public int totalCount(UserPageVO userPageVo) {
        return userMapper.totalCount(userPageVo);
    }

    @Override
    public int selectByName(String userName) {
        return userMapper.selectByName(userName);
    }
}
